package com.ghck.server.model;

import java.util.Date;
/**
 * 医生预约表  <br>
 * t_appointment <br>
 * v1.0 2016-05-01
 */
 public class Appointment extends BaseModel implements Comparable<Appointment>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//用户ID t_users 表ID
 	//user_id
	private Integer userId;

 	//医生ID t_doctor 表ID
 	//doctor_id
	private Integer doctorId;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//appointment_time
	private Date appointmentTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*用户ID t_users 表ID
 	*user_id
 	*/
	public Integer getUserId() {
		return userId;
	}
	
	/**
	*用户ID t_users 表ID
 	*user_id
 	*/
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	/**
	*医生ID t_doctor 表ID
 	*doctor_id
 	*/
	public Integer getDoctorId() {
		return doctorId;
	}
	
	/**
	*医生ID t_doctor 表ID
 	*doctor_id
 	*/
	public void setDoctorId(Integer doctorId) {
		this.doctorId = doctorId;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*appointment_time
 	*/
	public Date getAppointmentTime() {
		return appointmentTime;
	}
	
	/**
	*
 	*appointment_time
 	*/
	public void setAppointmentTime(Date appointmentTime) {
		this.appointmentTime = appointmentTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Override
	public int compareTo(Appointment o) {
		if(o!=null && o.getId()!=null){
			return o.id.compareTo(id);
		}
		return 0;
	}
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	